package linked.bean;

import java.util.List;

import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;


@XmlRootElement
public class Actor {
	private int id;
	private String name;
	private List<Movie> movies;
	
	public Actor(){}
	
	public Actor(int id, String name) {
		this.id = id;
		this.name = name;
	}
	
	public Actor(int id, String name, List<Movie> movies) {
		this.id = id;
		this.name = name;
		this.movies = movies;
	}



	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	@XmlElement(name="movie")
	public List<Movie> getMovies() {
		return movies;
	}
	public void setMovies(List<Movie> movies) {
		this.movies = movies;
	}
	
	
}
